package com.pkk.components.rpc.request;


import com.pkk.components.rpc.handinter.CommonRequestInterface;
import javax.validation.Valid;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description:通用请求类
 * @author: peikunkun
 * @create: 2018-08-13 18:08
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonRequest<T> implements CommonRequestInterface<T> {

  private static final long serialVersionUID = 1852011845491203354L;

  /**
   * 请求的head
   */
  private RequestHeader requestHeader;
  /**
   * 请求的数据内容
   */
  @Valid
  private T body;

}
